package cn.iocoder.yudao.module.crossborder.platform.controller.admin.platformordermapping.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 跨境电商平台订单映射分页 Request VO")
@Data
public class PlatformOrderMappingPageReqVO extends PageParam {

    @Schema(description = "平台编号", example = "6047")
    private Long platformId;

    @Schema(description = "店铺编号", example = "20609")
    private Long storeId;

    @Schema(description = "本地订单ID", example = "3100")
    private Long localOrderId;

    @Schema(description = "本地订单号")
    private String localOrderNo;

    @Schema(description = "平台订单ID", example = "3718")
    private String platformOrderId;

    @Schema(description = "平台订单号")
    private String platformOrderNo;

    @Schema(description = "平台交易ID", example = "17321")
    private String platformTransactionId;

    @Schema(description = "映射状态（0未映射 1已映射 2映射失败）", example = "1")
    private Integer mappingStatus;

    @Schema(description = "同步状态（0未同步 1同步中 2同步成功 3同步失败）", example = "1")
    private Integer syncStatus;

    @Schema(description = "最后同步时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastSyncTime;

    @Schema(description = "同步错误信息")
    private String syncErrorMsg;

    @Schema(description = "平台订单状态", example = "2")
    private String platformStatus;

    @Schema(description = "平台支付状态", example = "1")
    private String platformPaymentStatus;

    @Schema(description = "平台履约状态", example = "1")
    private String platformFulfillmentStatus;

    @Schema(description = "平台订单总金额")
    private BigDecimal platformTotalAmount;

    @Schema(description = "平台货币")
    private String platformCurrency;

    @Schema(description = "平台创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] platformCreatedTime;

    @Schema(description = "平台更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] platformUpdatedTime;

    @Schema(description = "是否自动同步")
    private Boolean autoSync;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}